Skip to content

chore(backend): Prioritize permission sync jobs for new accounts & repos#856

Merged
brendan-kellam merged 3 commits intomainfrom
bkellam/job-priority
Feb 5, 2026
Merged

chore(backend): Prioritize permission sync jobs for new accounts & repos#856
brendan-kellam merged 3 commits intomainfrom
bkellam/job-priority

Conversation

@brendan-kellam
Copy link
Contributor

@brendan-kellam brendan-kellam commented Feb 5, 2026

Adds priority queuing for permission sync jobs for newly created accounts & repos.

Summary by CodeRabbit

Release Notes

  • Changed
    • Permission syncing now prioritizes newly created accounts and repositories for faster initial synchronization, while existing resources continue to be re-synced on a regular schedule.

@github-actions

This comment has been minimized.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 5, 2026

Walkthrough

This PR implements permission sync queue prioritization for newly created accounts and repositories. It adds polling interval constants, includes related entity data in job payloads, and assigns priority 1 to never-synced items and priority 2 to re-syncs.

Changes

Cohort / File(s) Summary
Documentation
CHANGELOG.md
Updated changelog documenting the permission syncing queue prioritization behavior change.
Permission Syncers
packages/backend/src/ee/accountPermissionSyncer.ts, packages/backend/src/ee/repoPermissionSyncer.ts
Extracted polling interval to constant, added related entity data (account/repo) to job payloads via include parameter, and implemented priority field assignment based on sync status (priority 1 for never-synced, priority 2 for re-syncs).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested reviewers

  • msukkari
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: prioritizing permission sync jobs for new accounts and repositories.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bkellam/job-priority

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@claude
Copy link

claude bot commented Feb 5, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@claude
Copy link

claude bot commented Feb 5, 2026


Code review

No issues found. Checked for bugs and CLAUDE.md compliance.


@claude
Copy link

claude bot commented Feb 5, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@brendan-kellam brendan-kellam merged commit 39615c3 into main Feb 5, 2026
10 checks passed
@brendan-kellam brendan-kellam deleted the bkellam/job-priority branch February 5, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant